package com.ruoyi.vehicle.entity.response;

import lombok.Data;
import lombok.ToString;

/**
 * @author : CZQ
 * @date : 2024-09-17 15:06
 * @description :
 **/
@Data
@ToString
public class RegisterMsgRespBody {

    public static final byte success = 0;
    public static final byte car_already_registered = 1;
    public static final byte car_not_found = 2;
    public static final byte terminal_already_registered = 3;
    public static final byte terminal_not_found = 4;


    // byte[0-1] 应答流水号(WORD) 对应的终端注册消息的流水号
    private int replyFlowId;
    /***
     * byte[2] 结果(BYTE) <br>
     * 0：成功<br>
     * 1：车辆已被注册<br>
     * 2：数据库中无该车辆<br>
     **/
    private byte replyCode;
    // byte[3-x] 鉴权码(STRING) 只有在成功后才有该字段
    private String replyToken;

}
